-
Notifications
You must be signed in to change notification settings - Fork 2
ci: Improve plugin artifact bot to reuse comments in PRs #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks @josephfusco That's a really good idea :) I had noticed there was too many comments so thanks for this :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the plugin artifact bot, ensuring that it reuses existing comments instead of creating duplicate ones when posting plugin artifact links on pull requests.
- Updated the workflow in .github/workflows/plugin-artifact-for-pr.yml to search for and update an existing bot comment.
- Added a testing comment in README.md to help trigger the workflow during testing.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| plugins/wp-graphql-headless-webhooks/README.md | Added a testing comment for triggering the workflow (temporary). |
| .github/workflows/plugin-artifact-for-pr.yml | Updated comment posting logic to reuse existing bot comments. |
Comments suppressed due to low confidence (1)
plugins/wp-graphql-headless-webhooks/README.md:2
- [nitpick] Consider removing or updating the testing comment once workflow testing is complete to avoid leaving temporary code in production documentation.
<!-- Test to trigger workflow - can be removed after testing -->
|
ℹ️ Download the latest wp-graphql-headless-webhooks plugin zip from this PR |
|
@colinmurphy this can be seen working here #252 (comment) 🙌🏼 |
colinmurphy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josephfusco LGTM 🚀 🚀 🚀
Co-authored-by: Copilot <[email protected]>
…/wpengine/hwptoolkit into consolidate-pr-workflow-comments
This pull request updates the workflow for posting plugin artifact links on pull requests. The main change ensures that the bot checks for an existing comment and updates it instead of creating a new one each time, improving comment management and reducing duplication.
Enhancements to comment management:
.github/workflows/plugin-artifact-for-pr.yml: Added logic to find existing comments from the bot and update them if they already mention the plugin artifact, instead of creating new comments. This prevents duplicate comments and keeps the pull request cleaner.